<?php
/**
 * 邮件日志验证器
 */

namespace app\common\validate;

class EmailLogValidate extends Validate
{
    protected $rule = [
            'staff_id|' => 'require',
    'salary_time|' => 'require',
    'salary_email_msg|发送信息结果提示' => 'require',
    'status|状态0发送失败1发送成功' => 'require',
    'address|邮件地址' => 'require',
    'staff_name|收件人姓名' => 'require',

    ];

    protected $message = [
            'staff_id.require' => '不能为空',
    'salary_time.require' => '不能为空',
    'salary_email_msg.require' => '发送信息结果提示不能为空',
    'status.require' => '状态0发送失败1发送成功不能为空',
    'address.require' => '邮件地址不能为空',
    'staff_name.require' => '收件人姓名不能为空',

    ];

    protected $scene = [
        'add'  => ['staff_id','salary_time','salary_email_msg','status','address','staff_name',],
'edit' => ['staff_id','salary_time','salary_email_msg','status','address','staff_name',],

    ];

    

}
